package com.itheima.pattern.observer.demo;

public class Test {
    public static void main(String[] args) {
        Police police = new Police("老王");
        Thief t = new Thief("柳淇");
        Thief t2 = new Thief("琪琪");
        t.addObserver(police);
        t2.addObserver(police);


        t.steal();
        t2.steal();




    }
}
